package com.liveinstars.im.domain.manager;

import com.baomidou.mybatisplus.extension.service.IService;
import com.liveinstars.api.im.query.TodoQuery;
import com.liveinstars.im.domain.dao.model.Todo;

import java.util.List;

/**
 * <p>
 * 代办事项表 服务类
 * </p>
 *
 * @author 8btc
 * @since 2020-03-31
 */
public interface TodoManager extends IService<Todo> {

    /**
     * 根据查询参数获取todo列表
     * @param query
     * @return
     */
    List<Todo> listByQuery(TodoQuery query);

    /**
     * 根据Id获取todo详情
     * @param id
     * @return
     */
    Todo getById(Long id);

    List<Todo> listUnCompleteActivityTodoByUserId(Long userId);
}
